<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
if(!defined("DATE_W3C")) {
    define("DATE_W3C", "Y-m-d\\TH:i:sP");
}
if(!defined("DEBUGMODE_ENABLED")) {
    define("DEBUGMODE_ENABLED", false);
}
class PHPExcel_Shared_XMLWriter extends XMLWriter
{
    private $tempFileName = "";
    const STORAGE_MEMORY = 1;
    const STORAGE_DISK = 2;
    public function __construct($pTemporaryStorage = self::STORAGE_MEMORY, $pTemporaryStorageFolder = NULL)
    {
        if($pTemporaryStorage == 1) {
            $this->openMemory();
        } else {
            if($pTemporaryStorageFolder === NULL) {
                $pTemporaryStorageFolder = PHPExcel_Shared_File::sys_get_temp_dir();
            }
            $this->tempFileName = @tempnam($pTemporaryStorageFolder, "xml");
            if($this->openUri($this->tempFileName) === false) {
                $this->openMemory();
            }
        }
        if(DEBUGMODE_ENABLED) {
            $this->setIndent(true);
        }
    }
    public function __destruct()
    {
        if($this->tempFileName != "") {
            @unlink($this->tempFileName);
        }
    }
    public function getData()
    {
        if($this->tempFileName == "") {
            return $this->outputMemory(true);
        }
        $this->flush();
        return file_get_contents($this->tempFileName);
    }
    public function writeRawData($text)
    {
        if(is_array($text)) {
            $text = implode("\n", $text);
        }
        if(method_exists($this, "writeRaw")) {
            return $this->writeRaw(htmlspecialchars($text));
        }
        return $this->text($text);
    }
}

?>